package com.liuyi.netty.im.lychat.modular.controller.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author Mr.Fmy
 * @since 2022/1/12
 */
public class GroupMemberModel {

    @Data
    @ApiModel("GroupMemberModel-Add")
    public static class Add implements Serializable {

        @ApiModelProperty(value = "群组id", required = true)
        @NotNull
        private String groupId;

        @ApiModelProperty(value = "用户id", required = true)
        @NotNull
        @Size(min = 1)
        private List<String> userIds;
    }
}
